# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'speex'
    version = '1.2.0'
    stype = SourceType.TARBALL
    url = 'xiph://.tar.gz'
    tarball_checksum = 'eaae8af0ac742dc7d542c9439ac72f1f385ce838392dc849cae4536af9210094'
    licenses = [{License.BSD_like: ['COPYING']}]
    deps = ['libogg']
    allow_parallel_build = False

    files_libs = ['libspeex']
    files_bins = ['speexdec', 'speexenc']
    files_devel = ['include/speex', 'lib/pkgconfig/speex.pc']

    def prepare(self):
        if self.config.target_platform == Platform.ANDROID:
            self.autoreconf = True
